﻿using System;
using System.Collections.Generic;

namespace Models
{
    /// <summary>
    /// 员工类
    /// </summary>
    public class Staff
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 员工姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 员工编号
        /// </summary>
        public string JobNum { get; set; }

        /// <summary>
        /// 性别（1：男；2：女）
        /// </summary>
        public int Gender { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? BirthDate { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        public int Age { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string PhoneNumber { get; set; }

        /// <summary>
        /// 学历
        /// </summary>
        public string Education { get; set; }

        /// <summary>
        /// 岗位id
        /// </summary>
        public int PostId { get; set; }

        /// <summary>
        /// 岗位名称
        /// </summary>
        public string PostName { get; set; }

        /// <summary>
        /// 职称
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 工作年限
        /// </summary>
        public double WorkYears { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUser { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdateUser { get; set; }

        /// <summary>
        /// 是否删除（0：未删除；1：已删除）
        /// </summary>
        public int IsDelete { get; set; }

        /// <summary>
        /// 状态（1：正常）
        /// </summary>
        public int StaffState { get; set; }

        /// <summary>
        /// 资质证书（文件名）
        /// </summary>
        public string Certificate { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime DeleteTime { get; set; }

        /// <summary>
        /// 删除人
        /// </summary>
        public string DeleteUser { get; set; }

        /// <summary>
        /// 图片list （查询用）
        /// </summary>
        public List<FileData> ImgList { get; set; }

        public Staff()
        {
            BirthDate = null;
        }

    }
}
